package com.sky.controller.projectInterface.fishing;

import com.sky.pojo.Article;
import com.sky.pojo.Circle;
import com.sky.pojo.Equipment;
import com.sky.pojo.FishingArea;
import com.sky.result.Result;
import com.sky.service.FishingService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author ssm
 * @version v1.0
 * @ClassName fishingController
 * @Date: 2025/9/2 14:20
 * @Description: 描述
 */
@Api(tags = "钓鱼宝接口")
@RestController
@RequestMapping("/pojo")
public class FishingController {

    @Autowired
    private FishingService fishingService;


    @ApiOperation("显示可以钓鱼的区域")
    @GetMapping("/recommendEquipment")
    public Result<List<Equipment>> recommendEquipment(){

        List<Equipment> list= fishingService.getRecommendEquipmentList();
        return Result.success(list);
    }
    @ApiOperation("显示禁渔区")
    @GetMapping("/unfishingArea")
    public Result<List<FishingArea>> unfishingArea(){
        return Result.success(fishingService.getUnfishingAreaList());
    }

    @ApiOperation("返回钓友圈内容")
    @GetMapping("/circle")
    public Result<List<Circle>> circle(){
        return Result.success(fishingService.getCircleList());
    }

    @ApiOperation("")
    @GetMapping("/fishing-detail")
    public Result<List<Article>> fishingDetail(){
        return Result.success(fishingService.getFishingDetailList());
    }

}
